package com.company.monitor;

import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.WatchService;

/**
 * Created by ruoan on 2020/9/27 11:36
 */


public class MyMonitor {
    public static void main(String[] args) {

        try {
            final WatchService watchService = FileSystems.getDefault().newWatchService();
            System.out.println(watchService);

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
